package com.nagat.ejb.test;

import java.util.Properties;

public class PropertiesUtil {
	
	private static Properties props = new Properties(); 

	private PropertiesUtil() {
	}
	
	static {
		if(props == null){
			props = new Properties();
		}
		props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
		props.setProperty("java.naming.provider.url", "localhost:1099");
	}

	public static Properties getInstance(){
		
		return props;
	}
	
//	public static void main(String[] args) {
//		
//		
//		System.out.println(PropertiesUtil.getInstance().equals(PropertiesUtil.getInstance()));
//		System.out.println(PropertiesUtil.getInstance() == PropertiesUtil.getInstance());
//		System.out.println(PropertiesUtil.getInstance());
//	}
}
